package com.ruoyi.room.controller;


import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.pojo.TbBuildingblock;
import com.ruoyi.room.service.ITbBuildingblockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 楼栋表 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-08-29
 */
@RestController
@RequestMapping("/buildingblock/")
/*
* TODO
*   1.楼栋管理页面的楼栋管理功能实现
*
* */
public class TbBuildingblockController {

    @Autowired
    ITbBuildingblockService buildingblockService;

    @GetMapping("getBuilDingBlockNumber")
    public AjaxResult getBuilDingBlockNumber(){
        List<TbBuildingblock> list = buildingblockService.list();
        return AjaxResult.success(list);
    }
}
